import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

// 引入音频
import audio from './utils/audio'
Vue.prototype.audio = audio;

Vue.config.productionTip = false

Vue.prototype.$axios = axios;

import { Slider } from 'vant'
import { Swipe, SwipeItem } from 'vant'; // 引入vant swipe 
import 'vant/lib/index.css'; // 引入vant样式
import { Lazyload } from 'vant'; // 引入swipe 如偏懒加载
import { Tab, Tabs } from "vant";

Vue.use(Tab);
Vue.use(Tabs);

Vue.use(Slider);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Lazyload);

new Vue({
  router,
  store,
  created() {
    this.audio.$vm = this // 将当前vue实例作为audio对象的属性添加
  },
  render: h => h(App)
}).$mount('#app')
